package day06;
//方法演示
import java.util.Arrays;
public class MethodDemo {
    public static void main(String[] args) {
        aMethod();
        System.out.println(444);
    }
        public  static void aMethod(){
        System.out.println(111);
        bMethod();
        System.out.println(222);
        }
        public static void bMethod(){
        System.out.println(333);
        return ;
        }









/*
        sayHi("张建蕊");
        sayHallo("张建蕊",59);

        double a=getnum();
        System.out.println(a);
        int num=plus(1,5);
        System.out.println(num);
        //int[]a=tsstArray(20,100);
        //System.out.println("数组的长度为"+a.length);
        int[]b=tsstArray(20,100);
        System.out.println("第一个元素值"+b[0]);
        int[]c=tsstArray(20,125);
        Arrays.sort(c);
        System.out.println("排序后");
        for (int i=0;i< c.length;i++){

         System.out.println(+c[i]);
    }


}
    public static int[] tsstArray(int xx,int max){
        int[] arr=new int[xx];
        for (int i=0;i< arr.length;i++){
            arr[i]=(int)(Math.random()*(max+1));
        }
        return arr;
    }









    public static int plus(int num1,int num2){
        int num=num1+num2;
        return num;

    }







    public static double getnum(){
        return 2.22;
    }

    public static void sayHallo(String name,int age){
        if (age>60){
            return;
        }
        System.out.println("大家好我叫"+name+"今年"+age+"岁了");
    }


    public static void sayHi(String name){

        System.out.println("大家好我叫"+name+"今年18岁了");
    }


}


        say();
        say();
        System.out.println("继续执行......" );
    }

    public static void say(){
        System.out.println("大家好！！！！！");

         */


}